<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <h1><%= title %></h1>
    <p>EJS Welcome to <%= title %></p>
    <p><%= msg %></p>
    <p><%= locals.name %></p>
    <!-- 用模板写个if else的逻辑 -->
    
    <hr>
    <!-- 引入组件 -->
    <%- include('widgets/user-info',{
      isMe
    }) %>
    <!-- 组件化 放在views文件夹下-->
    <hr>

    <%- include('widgets/blog-list',{
      blogList
    }) %>
  </body>
</html>
